package com.easyCode.feature.exception;


/**
 * @author 大忽悠
 */
public class CustomException extends RuntimeException {
    private String backErrMsg;
    private String frontErrMsg;

    public CustomException(){
         this.backErrMsg= CustomExceptionType.INTERNAL_SERVER_ERROR;
         this.frontErrMsg= CustomExceptionType.INTERNAL_SERVER_ERROR;
    }

    public CustomException(String backErrMsg,String frontErrMsg) {
        this.backErrMsg=backErrMsg;
        this.frontErrMsg=frontErrMsg;
    }

    public String getBackErrMsg() {
        return backErrMsg;
    }

    public String getFrontErrMsg() {
        return frontErrMsg;
    }
}
